package com.zkthink.ceres.member.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.R;
import com.zkthink.base.request.PageParams;
import com.zkthink.ceres.member.dto.MemberPageDTO;
import com.zkthink.ceres.member.service.UserGiftInfoService;
import com.zkthink.ceres.member.vo.UserGiftInfoVO;
import com.zkthink.security.annotation.PreAuth;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserGiftInfoController
 * @Description: UserGiftInfoController
 * @Author ck
 * @Date 2022/3/25
 * @Version V1.0
 **/
@Slf4j
@Validated
@RestController
@RequestMapping("/userGift")
@Api(value = "UserGiftInfoController", tags = "送礼查询")
public class UserGiftInfoController {
    @Autowired
    private UserGiftInfoService userGiftInfoService;

    /**
     * 分页查询
     */
    @ApiOperation(value = "分页列表查询")
    @PostMapping(value = "/listPage")
    public R<IPage<UserGiftInfoVO>> listPage(@RequestBody @Validated PageParams<UserGiftInfoVO> params) {
        // 处理参数
        return R.success(userGiftInfoService.listPage(params));
    }



}